import { requests } from "../requests"

export const reqCode = (data) => {
    return requests({
        url: "/auth/code/generate",
        method: 'get',
        params: data
    })
}

export const reqLogin = (data) => {
    return requests({
        url: '/auth/oauth/token',
        method: 'post',
        data: data,
        headers: { 'content-type': 'application/x-www-form-urlencoded' },
    })
}

export const reqUserInfo = () => {
    return requests({
        url: "/member/user/info",
        method: 'get',
    })
}
